﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ReadMessageControl.ascx.cs" Inherits="Web_Pages_ReadMessageControl" %>
 <%@ Register TagPrefix="cc1" Namespace="SiteUtils" Assembly="CollectionPager" %>


<style type="text/css">
    .style1
    {
        width: 122%;
    }
</style>

<table align="lèt">
    <tr>
        <td>
            <h1>Danh sách tin nhắn</h1>
        </td>
    </tr>
    <tr>
        <td>
            <asp:DataList ID="DataList1" runat="server">
    <ItemTemplate>
        <table class="style1">
            <tr>
                <td>
                    Tin nhắn từ :</td>
                <td>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("touser.Username") %>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    Trạng thái :</td>
                <td>
                    <asp:TextBox ID="txtTrangThai" runat="server" Height="22px" Width="139px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Chủ đề&nbsp; :</td>
                <td>
                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("Subject") %>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    Nội dung :</td>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server" Height="106px" ReadOnly="True" 
                        Text='<%# Eval("Contents") %>' TextMode="MultiLine" Width="166px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Thời gian :</td>
                <td>
                    <asp:Label ID="Label3" runat="server" Text='<%# Eval("CreateTime") %>'  DataFormatString="{0:dd/MM/yyyy}"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    </ItemTemplate>
</asp:DataList>
        </td>
    </tr>
    <tr>
        <td>
            <cc1:CollectionPager ID="CollectionPager1" runat="server" 
     BackText="« Trước" FirstText="-- Đầu" LabelText="Trang:"
      LastText="Cuối" NextText="Sau »" ResultsFormat="Kết quả từ {0}-{1} (của {2}) " ShowFirstLast="True" SliderSize="5" PagingMode="PostBack">
      </cc1:CollectionPager>
        </td>
    </tr>
</table>


 

